package anonymouschat.messages.securitymessages;

import java.io.Serializable;

import anonymouschat.messages.Message;


/**
 * This is a base class for Encrypted Messages.
 * 
 * {@link RSAEncryptedMessage} and {@link AESEncryptedMessage} are derived
 * classes.
 * 
 * @author bh349
 * 
 */
public class EncryptedMessage extends Message implements Serializable {
	private static final long serialVersionUID = 1127682593769464962L;
	private byte[] encryptedData;
	
	public byte[] getEncryptedData() {
		return encryptedData;
	}

	public EncryptedMessage(byte[] encryptedData) {
		this.encryptedData = encryptedData;
	}
	
	@Override
	public String getAllContents() {
		return "Encrypted Message";
	}

}
